<form class="layui-form" action="{:sysuri('editPurchaseOrder')}" method="post" lay-filter="editPurchaseOrder" data-auto="true" autocomplete="off">
    <div class="layui-card-body">
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label label-required-next">采购单号</label>
            <div class="layui-input-block">
              <textarea name='other_order_no' placeholder="请输入采购单号多个换行分隔" class="layui-textarea" lay-verify="required">{$order_info.other_order_no}</textarea>
            </div>
          </div>
        <div class="layui-form-item text-center">
            <div class="layui-input-block">
                <input type="hidden" name="order_id" value="{$order_info.id|default=0}">
                <button type="button" class="layui-btn" lay-submit lay-filter="purchase_submit">提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </div>
</form>
<script>
    $(function (){
        layui.use(['form'], function(){
            let form = layui.form;
            form.on('submit(purchase_submit)', function(data){
                let field = data.field; // 获取表单全部字段值
                httpRequest('{:sysuri("editPurchaseOrder")}', field, 'post', function (info, data) {
                    $.msg.success(info, 3, function () {
                        $.msg.closeLastModal();
                    })
                })
                return false; // 阻止默认 form 跳转
            });
        })
    })
</script>